package Page.Research.Result;

import Page.Page;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;

import java.io.IOException;
import java.util.Objects;

public class ResultPage implements Page {
    public static Scene getScene(){

        Parent root = null;
        try{
            root = FXMLLoader.load(Objects.requireNonNull(ResultPage.class.getResource("Result.fxml")));
        }catch (IOException e){
            System.err.println("Error loading ResultPage.fxml");
        }

        if (root != null) {
            return new Scene(root);
        }else{
            return new Scene(new Label("出现未知错误"));
        }
    }
}
